package com.qixin.modules.rzInvoice.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qixin.modules.rzInvoice.entity.EaBill;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Description: ea_bill
 * @Author: qixin-boot
 * @Date:   2021-09-10
 * @Version: V1.0
 */
public interface EaBillMapper extends BaseMapper<EaBill> {
    List<EaBill> selectEaBills(Map<String,Object> map);


    // update-begin-by wujinbiao 2022/2/22 21:28 for 通过发票类型id查询对应的发票类型名称
    @Select("select item_text from sys_dict_item where dict_id = '1411894489202585601' and item_value = #{value}")
    String selectTypeName(@Param("value") String value);

    List<EaBill> selectDelBills(List<String> ids);
    // update-end-by wujinbiao 2022/2/22 21:28 for 通过发票类型id查询对应的发票类型名称

}
